<!--贷款信息-->
<template>
  <Card>
    <Form :label-width="120" inline>
      <FormItem label="贷款编号：" prop="">
        <label>{{data.loanId}}</label>
      </FormItem>
      <FormItem label="贷款状态：" prop="">
        <label>{{this.statusName(data.status)}}</label>
      </FormItem>
      <FormItem label="产品名称：" prop="">
        <label>{{data.productName}}</label>
      </FormItem>
      <FormItem label="期数：" prop="">
        <label>{{data.term}}</label>
      </FormItem>
      <FormItem label="贷款金额：" prop="">
        <label>{{data.loanAmt}}</label>
      </FormItem>
      <FormItem label="贷款日期：" prop="">
        <label>{{this.$util.loanModularFormatTime(data.loanDate)}}</label>
      </FormItem>
    </Form>
  </Card>
</template>

<script>
export default {
  name: 'loan-info-form',
  data () {
    return {

    }
  },
  methods: {
    statusName (status) {
      if (status === 0) {
        return '正常'
      }
      if (status === 1) {
        return '逾期'
      }
      if (status === 2) {
        return '结清'
      }
      if (status === 3) {
        return '提前结清'
      }
      if (status === 10) {
        return '核销'
      }
    }

  },
  created: function () {
    //  this.$ajax = this.$util.ajax();
    //  this.initLoanInfo();
  },
  props: {
    data: Object
  }

}
</script>
